home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.plaf.basic;
-
- import com.sun.java.swing.event.ListSelectionEvent;
- import com.sun.java.swing.event.ListSelectionListener;
- import java.io.Serializable;
-
- public class BasicListUI$SelectionListener implements ListSelectionListener, Serializable {
- // $FF: synthetic field
- BasicListUI this$0;
-
- public void valueChanged(ListSelectionEvent e) {
- this.this$0.maybeUpdateLayoutState();
- int minY = this.this$0.convertRowToY(e.getFirstIndex());
- int maxY = this.this$0.convertRowToY(e.getLastIndex());
- if (minY != -1 && maxY != -1) {
- maxY += this.this$0.getRowHeight(e.getLastIndex());
- this.this$0.list.repaint(0, minY, this.this$0.list.getWidth(), maxY - minY);
- } else {
- this.this$0.list.repaint(0, 0, this.this$0.list.getWidth(), this.this$0.list.getHeight());
- }
-
- }
-
- // $FF: synthetic method
- public BasicListUI$SelectionListener(BasicListUI this$0) {
- this.this$0 = this$0;
- }
- }
-